<?php
/**
 * Created by PhpStorm.
 * User: fengtian
 * Date: 15-3-19
 * Time: 下午12:10
 */
?>
<?php
if(isset($result)){
    foreach($result as $k=>$datas):?>
        <tr>
            <td><input type="hidden" name="warning_sku" value="<?php echo $datas['sku']?>">
                <?php echo ++$k; ?></td>
            <td><?php echo $datas['sku'] ?></td>
            <td><?php echo $datas['sku_name'] ?></td>
            <td><?php echo $datas['storage_position'] ?></td>
            <td><?php echo $datas['quantity']+$datas['lazy'] ?>  </td>
            <td>
                <input class='btn btn-success emergency_warning' style='width: 80px' value='紧急预警'/>
                <?php
                    /*if($datas['status']==3){
                        echo "<input class='btn btn-success' style='width: 80px' value='已预警' />";
                    }else{
                        echo "<input class='btn btn-success emergency_warning' style='width: 80px' value='紧急预警'/>";
                    }*/
                ?>


            </td>
        </tr>
    <?php endforeach;
} ?>
<tr>
    <td colspan="6">
        <div class="mypage"><?php if(isset($pagination)){
                echo $pagination;
            } ?></div>
    </td>
</tr>